package org.xs.big_event.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xs.big_event.service.impl.HomeService;
import org.xs.big_event.utils.R;

@RestController
@RequestMapping("/api/home")
public class HomeController {
    @Autowired
    private HomeService homeService;
    @GetMapping("")
    public R home(){
        return homeService.GetData();
    }


}
